package com.neu.his.entity;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class DiagRecords extends Base {
    private Long patientId;
    private String diseaseHistory;
    private Date startHospitalization;
    private Date endHospitalization;
    private Long doctorId;
    private String medicalAdvice;
    private BigDecimal totalCost;
    private String invoiceNumber;
    private BigDecimal realCost;

    @TableField(exist = false)
    private Patient patient;

    @TableField(exist = false)
    private List<DrugDisturb> drugDisturbList;

    @TableField(exist = false)
    private List<NonDrugDisturb> nonDrugDisturbList;

    @Override
    public String toString(){
        return JSON.toJSONString(this);
    }
}
